home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / tour.dxr / 00441_Tour Class.ls < prev    next >
Encoding:
Text File  |  2000-01-21  |  626 b   |  35 lines

  1. property pFindObj
  2.  
  3. on new me
  4.   return me
  5. end
  6.  
  7. on InitTextEntries me
  8.   repeat with rc in ["txtField4", "txtField1", "txtField2", "txtField3"]
  9.     member(rc).text = EMPTY
  10.   end repeat
  11. end
  12.  
  13. on InitFindObj me, buttonName, castName, theChannel, theStageLoc, descendant
  14.   if objectp(descendant) then
  15.     object = descendant
  16.   else
  17.     object = me
  18.   end if
  19.   pFindObj = new(script("generic button"), buttonName, castName, theChannel, theStageLoc, object)
  20.   Inscope(pFindObj)
  21.   return me
  22. end
  23.  
  24. on GetFindObj
  25.   return pFindObj
  26. end
  27.  
  28. on condemn me
  29.   if objectp(pFindObj) then
  30.     condemn(pFindObj)
  31.   end if
  32.   pFindObj = 0
  33.   return me
  34. end
  35.